<include file="Public:header" />
<div class="title">
    <span>用户管理</span>
</div>
<div class="list">
    <div class="add">
        <a href="{:U('/User/add/')}">添用户</a>
    </div>
    <table border="0" cellpadding="0" cellspacing="0">
        <tr>
            <th>
                编号
            </th>
            <th>
                用户名
            </th>
            <th>
                编辑
            </th>
        </tr>
        <foreach name="users" item="user">
            <tr>
                <td>
                    {$user.id}
                </td>
                <td>
                    {$user.name}
                </td>
                <td>
                    <a href="{:U('User/edit/id')}/{$user.id}">编辑</a>
                </td>
            </tr>
        </foreach>
        <tr>
            <td colspan="5">
                {$page}
            </td>
        </tr>
    </table>
</div>
<include file="Public:footer" />